package biz.ezcom.design.pattern.iterator;

public class Client {
	public static void main(String[] args) {
		ConcreteAggregate a = new ConcreteAggregate();
		a.add("a");
		a.add("b");
		a.add("c");
		a.add("d");
		
		Iterator i = new ConcreteIterator(a);
		while(!i.hasNext()){
			System.out.println(i.currentItem());
			i.next();
		}
	}
}
